package top.lcpsky.flashcards.entity;

import top.lcpsky.flashcards.dto.CardDto;

public class CardsWithBLOBs extends Cards {
    private String front;

    private String back;
    

    public CardsWithBLOBs() {}

    public CardsWithBLOBs(CardDto card) {
        this.setId(Integer.valueOf(card.getId()));
        this.setFront(card.getFront());
        this.setBack(card.getBack());
        this.setType(card.getType());
        this.setKnown(card.getKnown());
	}

	public String getFront() {
        return front;
    }

    public void setFront(String front) {
        this.front = front == null ? null : front.trim();
    }

    public String getBack() {
        return back;
    }

    public void setBack(String back) {
        this.back = back == null ? null : back.trim();
    }
}